<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysLogGenReportBean.id}"/>
		<f:event type="preRenderView" listener="#{sysLogGenReportBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Log Gen Report"/>

	<ui:define name="header">
		Sys Log Gen Report
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysLogGenReportBean.id}">
				Edit existing Sys Log Gen Report
			</c:when>
			<c:otherwise>
				Create a new Sys Log Gen Report
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportRecNo" value="Rec No:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportRecNo" required="true" value="#{sysLogGenReportBean.sysLogGenReport.recNo}"/>
					<h:message for="sysLogGenReportBeanSysLogGenReportRecNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportRptCode" value="Rpt Code:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportRptCode" maxLength="10" value="#{sysLogGenReportBean.sysLogGenReport.rptCode}"/>
					<h:message for="sysLogGenReportBeanSysLogGenReportRptCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportOrgNo" value="Org No:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportOrgNo" value="#{sysLogGenReportBean.sysLogGenReport.orgNo}"/>
					<h:message for="sysLogGenReportBeanSysLogGenReportOrgNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportRptYear" value="Rpt Year:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportRptYear" value="#{sysLogGenReportBean.sysLogGenReport.rptYear}"/>
					<h:message for="sysLogGenReportBeanSysLogGenReportRptYear" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportRptMonth" value="Rpt Month:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportRptMonth" value="#{sysLogGenReportBean.sysLogGenReport.rptMonth}"/>
					<h:message for="sysLogGenReportBeanSysLogGenReportRptMonth" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportRptDate" value="Rpt Date:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportRptDate" maxLength="10" value="#{sysLogGenReportBean.sysLogGenReport.rptDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sysLogGenReportBeanSysLogGenReportRptDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportStartDtm" value="Start Dtm:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportStartDtm" maxLength="19" value="#{sysLogGenReportBean.sysLogGenReport.startDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="sysLogGenReportBeanSysLogGenReportStartDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportEndDtm" value="End Dtm:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportEndDtm" maxLength="19" value="#{sysLogGenReportBean.sysLogGenReport.endDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="sysLogGenReportBeanSysLogGenReportEndDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysLogGenReportBeanSysLogGenReportGenStatusNo" value="Gen Status No:"/>
				<h:panelGroup>
					<h:inputText id="sysLogGenReportBeanSysLogGenReportGenStatusNo" value="#{sysLogGenReportBean.sysLogGenReport.genStatusNo}"/>
					<h:message for="sysLogGenReportBeanSysLogGenReportGenStatusNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysLogGenReportBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysLogGenReportBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysLogGenReportBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysLogGenReportBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>